<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>智投内容页</title>
    <link rel="stylesheet" type="text/css" href="./css/api.css" />
    <link rel="stylesheet" type="text/css" href="./css/aui.css" />
    <link rel="stylesheet" type="text/css" href="./css/font-awesome.min.css" />
    <link rel="stylesheet" type="text/css" href="./css/style.css" />
    <script type="text/javascript" src="./script/api.js"></script>
    <script type="text/javascript" src="./script/aui-tab.js" ></script>
    <link rel="stylesheet" type="text/css" href="./css/aui-slide.css" />
    <script type="text/javascript" src="./script/aui-slide.js"></script>
    <script type="text/javascript" src="./script/base.js"></script>
    <script type="text/javascript" src="./script/doT.min.js"></script>
    <script type="text/javascript" src="./script/jquery-3.2.0.js"></script>
    <script type="text/javascript">
        function closeWin(){
            api.closeWin({
            });
        };
    </script>
</head>



<!-- 头部 -->
<header class="aui-bar aui-bar-nav" id="topbar">
    <a class="aui-pull-left aui-btn" onclick="closeWin()">
        <span class="aui-iconfont aui-icon-left"></span>
    </a>
    <div class="aui-title">产品详情</div>
</header>


<script type="text/javascript">

    apiready = function(){

        productID = api.pageParam.productID;
        updateData(productID);





    }


    // 加载数据
    function updateData(id){
        $api.fixStatusBar($api.dom('#topbar'));
        var headerPos = $api.offset($api.dom('#topbar'));
        api.openFrame({
            name: 'product_list',
            url: webAddress + '/index.php?ctl=app_deal&act=description&table=learn&id='+id,
            rect: {
                x: 0,
                y: headerPos.h,
                w: 'auto',
                h: 'auto'
            },
            pageParam: {
                name: 'test'
            },
            bounces: true,
            bgColor: 'rgba(0,0,0,0)',
            vScrollBarEnabled: true,
            hScrollBarEnabled: true
        });


    //     alert(id);
    //     var userid = $api.getStorage('userid');
    //     api.ajax({
    //         url: webAddress + '/index.php?ctl=app_deal&act=description',
    //         method: 'post',
    //         data: {
    //             values: {
    //              id: id,
    //              table: 'learn',
    //          },
    //      }
    //  },function(ret, err){
    //     if (ret) {
    //         var ret = $api.jsonToStr(ret);
    //         alert(ret);
    //         // 关闭下拉刷新控件
    //         // api.refreshHeaderLoadDone();
    //         // api.hideProgress();
    //         if (ret.status == 0) {
    //             alert(ret.info);
    //             return false;
    //         }else{

    //             var data = ret;
    //             // learn_info = ret;
    //             // templateFun(data);

    //         }
    //     } else {
    //         alert(err.msg);
    //         // 关闭下拉刷新控件
    //         api.refreshHeaderLoadDone();
    //         // 关闭加载状态控件
    //         api.hideProgress();
    //     }
    // });

}


</script>
</html>